// This file was decompiled using SASCM.ini published on 2021-01-30
{$CLEO .cs}
{$USE ini}

if 
   not read_string_from_ini_file 2@v "cleo\Call Yo' Homies05.ini" "confg" "Cheat_Code"
jf @NONAME_61 
2@v = "STARTSUP05" 

:NONAME_61
if 
   not read_int_from_ini_file 10@ "cleo\Call Yo' Homies05.ini" "confg" "homie_model_1" 
jf @NONAME_132 
10@ = 105 

:NONAME_132
if 
   not read_int_from_ini_file 11@ "cleo\Call Yo' Homies05.ini" "confg" "homie_model_2" 
jf @NONAME_203 
11@ = 106 

:NONAME_203
if 
   not read_int_from_ini_file 12@ "cleo\Call Yo' Homies05.ini" "confg" "homie_model_3" 
jf @NONAME_274 
12@ = 107 

:NONAME_274
if 
   not read_int_from_ini_file 3@ "cleo\Call Yo' Homies05.ini" "confg" "car_model" 
jf @NONAME_342 
3@ = 492 

:NONAME_342
if 
   not read_int_from_ini_file 13@ "cleo\Call Yo' Homies05.ini" "confg" "weapon_model" 
jf @NONAME_413 
13@ = 355 

:NONAME_413
if 
   not read_int_from_ini_file 14@ "cleo\Call Yo' Homies05.ini" "confg" "weapon_id" 
jf @NONAME_480 
14@ = 30 

:NONAME_480
if 
   not read_int_from_ini_file 5@ "cleo\Call Yo' Homies05.ini" "confg" "car_col_1" 
jf @NONAME_547 
5@ = 16 

:NONAME_547
if 
   not read_int_from_ini_file 6@ "cleo\Call Yo' Homies05.ini" "confg" "car_col_2" 
jf @NONAME_614 
6@ = 15 

:NONAME_614
Actor.EmulateFromPlayer(0@, 0)

:NONAME_621
wait 0 
if 
test_cheat "RELOAD" 
jf @NONAME_1116 
read_string_from_ini_file 2@v "cleo\Call Yo' Homies05.ini" "confg" "Cheat_Code"
read_int_from_ini_file 10@ "cleo\Call Yo' Homies05.ini" "confg" "homie_model_1" 
read_int_from_ini_file 11@ "cleo\Call Yo' Homies05.ini" "confg" "homie_model_2" 
read_int_from_ini_file 12@ "cleo\Call Yo' Homies05.ini" "confg" "homie_model_3" 
read_int_from_ini_file 3@ "cleo\Call Yo' Homies05.ini" "confg" "car_model" 
read_int_from_ini_file 13@ "cleo\Call Yo' Homies05.ini" "confg" "weapon_model" 
read_int_from_ini_file 14@ "cleo\Call Yo' Homies05.ini" "confg" "weapon_id" 
read_int_from_ini_file 5@ "cleo\Call Yo' Homies05.ini" "confg" "car_col_1" 
read_int_from_ini_file 6@ "cleo\Call Yo' Homies05.ini" "confg" "car_col_2" 
print_help_string ".ini Recarregado" 

:NONAME_1116
if
test_cheat "STARTSUP05"  
jf @NONAME_1208 
gosub @NONAME_1253 
gosub @NONAME_1215 
gosub @NONAME_1287 
gosub @NONAME_1453 
gosub @NONAME_1574 
gosub @NONAME_1541 
gosub @NONAME_1689 

:NONAME_1181
if
test_cheat "STARTSUP05"  
jf @NONAME_1208 
wait 0 
jump @NONAME_1181 

:NONAME_1208
jump @NONAME_621 

:NONAME_1215
0729: AS_actor 0@ hold_cellphone 1 
wait 2500 
05C1: AS_actor 0@ speak_from_audio_table 108 
wait 2500 
0729: AS_actor 0@ hold_cellphone 0 
Model.Destroy(#CELLPHONE)
return 

:NONAME_1253
Model.Load(#CELLPHONE)
Model.Load(3@)
Model.Load(10@)
Model.Load(11@)
Model.Load(12@)
Model.Load(13@)                     
return 

:NONAME_1287
04C4: store_coords_to 15@ 16@ 17@ from_actor 0@ with_offset 0.0 -450.0 80.0 
02C1: store_to 15@ 16@ 17@ car_path_coords_closest_to 15@ 16@ 17@ 
Car.Create(4@, 3@, 15@, 16@, 90.0)
car.Health(4@) = 9000
0229: set_car 4@ primary_color_to 5@ secondary_color_to 6@ 
Actor.CreateAsDriver(7@, PedType.Gang2, 10@, 4@) 
0825: set_helicopter 4@ instant_rotor_start
Actor.CreateAsPassenger(8@, PedType.Gang2, 11@, 4@, 1)
Actor.CreateAsPassenger(9@, PedType.Gang2, 12@, 4@, 2)
Actor.Health(7@) = 1500
Actor.AddArmour(7@, 150)
Actor.Health(8@) = 1500
Actor.AddArmour(8@, 150)
Actor.Health(9@) = 1500
Actor.AddArmour(9@, 150)
0568: set_actor 7@ untargetable 1
0568: set_actor 8@ untargetable 1
0568: set_actor 9@ untargetable 1
0446: set_actor 7@ dismemberment_possible 0 
0446: set_actor 8@ dismemberment_possible 0 
0446: set_actor 9@ dismemberment_possible 0 
Model.Destroy(10@)
Model.Destroy(11@)
Model.Destroy(12@)
Model.Destroy(3@)
return 

:NONAME_1453
Actor.GiveWeaponAndAmmo(7@, 14@, 999999)
Actor.GiveWeaponAndAmmo(8@, 14@, 999999)
Actor.GiveWeaponAndAmmo(9@, 14@, 999999)
Actor.WeaponAccuracy(7@) = 100
Actor.WeaponAccuracy(8@) = 100
Actor.WeaponAccuracy(9@) = 100
07DD: set_actor 7@ attack_rate 100 // previously known as temper_to 
07DD: set_actor 8@ attack_rate 100 // previously known as temper_to 
07DD: set_actor 9@ attack_rate 100 // previously known as temper_to 
Model.Destroy(13@)
return 

:NONAME_1541
07AF: 1@ = player 0 group 
0631: put_actor 7@ in_group 1@ 
0631: put_actor 8@ in_group 1@ 
0631: put_actor 9@ in_group 1@ 
return 

:NONAME_1574
0726: heli 4@ follow_actor 0@ follow_car -1 radius 15.0 
07BB: set_heli 4@ horizontal_thrust_power 20
04C4: store_coords_to 15@ 16@ 17@ from_actor 0@ with_offset 4.0 4.0 4.0 

:NONAME_1634
wait 0 
if or
01AF:   car 4@ sphere 0 in_sphere 15@ 16@ 17@ radius 10.0 10.0 50.0  
8185:   not car 4@ health > 400 
0119:   car 4@ wrecked
jf @NONAME_1634 

:NONAME_1687 
wait 0
Car.LockInCurrentPosition(4@, True)
wait 500
Car.LockInCurrentPosition(4@, False)
33@ = 0

:NONAME_1688
wait 100
04C4: store_coords_to 15@ 16@ 17@ from_actor 0@ with_offset 0.0 0.0 0.0 
0743: heli 4@ fly_to 15@ 16@ 17@ altitude 0.0 0.0
if 
01AF:   car 4@ sphere 0 in_sphere 15@ 16@ 17@ radius 6.0 6.0 4.0
jf @NONAME_A_1688 
jump @NONAME_B_1688 

:NONAME_A_1688
wait 0
if
  33@ > 60000
jf @NONAME_1688 
jump @NONAME_1574

:NONAME_B_1688
wait 1000 
0430: put_actor 7@ into_car 4@ passenger_seat 0
wait 2000   
car.SetImmunities(4@, 1, 1, 1, 1, 1)
01C3: remove_references_to_car 4@
return 

:NONAME_1689
wait 0
if and
0118:   actor 7@ dead
0118:   actor 8@ dead
0118:   actor 9@ dead
jf @NONAME_1769 
06C9: remove_actor 7@ from_group
01C2: remove_references_to_actor 7@ // Like turning an actor into a random pedestrian 
06C9: remove_actor 8@ from_group
01C2: remove_references_to_actor 8@ // Like turning an actor into a random pedestrian 
06C9: remove_actor 9@ from_group
01C2: remove_references_to_actor 9@ // Like turning an actor into a random pedestrian 
0568: set_actor 7@ untargetable 0
0568: set_actor 8@ untargetable 0
0568: set_actor 9@ untargetable 0
jump @NONAME_1819

:NONAME_1769
wait 0
if 
   Player.Wasted(0)
jf @NONAME_1779 
06C9: remove_actor 7@ from_group
01C2: remove_references_to_actor 7@ // Like turning an actor into a random pedestrian 
06C9: remove_actor 8@ from_group 
01C2: remove_references_to_actor 8@ // Like turning an actor into a random pedestrian
06C9: remove_actor 9@ from_group 
01C2: remove_references_to_actor 9@ // Like turning an actor into a random pedestrian
0568: set_actor 7@ untargetable 0
0568: set_actor 8@ untargetable 0
0568: set_actor 9@ untargetable 0
jump @NONAME_1819

:NONAME_1779
wait 0
if
test_cheat "ENDSUP05" 
jf @NONAME_1689
06C9: remove_actor 7@ from_group
01C2: remove_references_to_actor 7@ // Like turning an actor into a random pedestrian 
06C9: remove_actor 8@ from_group 
01C2: remove_references_to_actor 8@ // Like turning an actor into a random pedestrian
06C9: remove_actor 9@ from_group 
01C2: remove_references_to_actor 9@ // Like turning an actor into a random pedestrian
0568: set_actor 7@ untargetable 0
0568: set_actor 8@ untargetable 0
0568: set_actor 9@ untargetable 0

:NONAME_1819
return 
terminate_this_custom_script 

